import time

start_time = time.time() 
# print(start_time) # 17,0678,6519.105834 1970-01-01 00:00:00

for a in range(0, 1001):
    for b in range(0, 1001):
        for c in range(0, 10001):
            if a+b+c == 1000 and pow(a,2)+pow(b,2) == pow(c,2):
                print("a, b, c: %d, %d, %d" % (a, b, c))
                # print("a, b, c: {}, {}, {}".format(a, b, c))

end_time = time.time() 
cost_time = end_time - start_time 
print(cost_time) # 1200.00 = 20min
